﻿<Page x:Class="SlaktDataReader.Pages.pgBirth"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
      xmlns:local="clr-namespace:SlaktDataReader"
      mc:Ignorable="d" 
      DataContext="{Binding RelativeSource={RelativeSource self}}"
      d:DesignHeight="600" d:DesignWidth="900"
	Title="pgBirth">
    <Page.Resources>

        <local:titleFirstSurName x:Key="tfsConv" />

        <DataTemplate x:Key="dParents">
            <Grid>
                <Grid.RowDefinitions>
                    <RowDefinition Height="25" />
                    <RowDefinition Height="25" />
                </Grid.RowDefinitions>

                <StackPanel Orientation="Horizontal" Grid.Row="0">
                    <TextBlock Name="a" Text="{Binding Path=FatherTitle}" />
                    <TextBlock Name="b" FontWeight="Bold" >
                    <TextBlock.Text>
                        <MultiBinding Converter="{StaticResource tfsConv}">
                            <Binding Path="FatherTitle" />
                            <Binding Path="FatherFirstName" />
                            <Binding Path="FatherSurName" />
                        </MultiBinding>
                    </TextBlock.Text>
                    </TextBlock>
                </StackPanel>

                <StackPanel Orientation="Horizontal" Grid.Row="1">
                    <TextBlock Text="{Binding Path=MotherTitle}" />

                    <TextBlock FontWeight="Bold">
                    <TextBlock.Text>
                        <MultiBinding Converter="{StaticResource tfsConv}">
                            <Binding Path="MotherTitle" />
                            <Binding Path="MotherFirstName" />
                            <Binding Path="MotherSurName" />
                        </MultiBinding>
                    </TextBlock.Text>
                    </TextBlock>
                </StackPanel>
            </Grid>
        </DataTemplate>
        
        <DataTemplate x:Key="dFather">
            <StackPanel Orientation="Horizontal">
                <TextBlock Name="a" Text="{Binding Path=FatherTitle}" />
                <TextBlock Name="b" FontWeight="Bold" >
                    <TextBlock.Text>
                        <MultiBinding Converter="{StaticResource tfsConv}">
                            <Binding Path="FatherTitle" />
                            <Binding Path="FatherFirstName" />
                            <Binding Path="FatherSurName" />
                        </MultiBinding>
                    </TextBlock.Text>
                </TextBlock>

            </StackPanel>
            <DataTemplate.Triggers>

            </DataTemplate.Triggers>
        </DataTemplate>

        <DataTemplate x:Key="dMother">
            <StackPanel Orientation="Horizontal">
                <TextBlock Text="{Binding Path=MotherTitle}" />

                <TextBlock FontWeight="Bold">
                    <TextBlock.Text>
                        <MultiBinding Converter="{StaticResource tfsConv}">
                            <Binding Path="MotherTitle" />
                            <Binding Path="MotherFirstName" />
                            <Binding Path="MotherSurName" />
                        </MultiBinding>
                    </TextBlock.Text>
                </TextBlock>
            </StackPanel>
        </DataTemplate>

        <DataTemplate x:Key="dChild">
            <StackPanel Orientation="Horizontal" Height="34">
                <Image Name="fImg" Source="/SlaktDataReader;component/Images/female-icon-32-green.png" Visibility="Collapsed" VerticalAlignment="Center" Width="16" Height="16"/>
                <TextBlock Name="fn" Text="{Binding Path=FirstName}" VerticalAlignment="Top" FontWeight="Bold" FontFamily="../Fonts/OpenSans-Regular.ttf#Open Sans" FontSize="14" />
                <TextBlock Name="en" Text="{Binding Path=SurName}" VerticalAlignment="Top" FontWeight="Bold" Margin="6,0,0,0" FontFamily="../Fonts/OpenSans-Regular.ttf#Open Sans" />
            </StackPanel>
            <DataTemplate.Triggers>
                <DataTrigger Binding="{Binding Path=Gender}" Value="K">
                    <Setter TargetName="fn" Property="Foreground" Value="{DynamicResource aGreen}" />
                </DataTrigger>
            </DataTemplate.Triggers>
        </DataTemplate>
        <BooleanToVisibilityConverter x:Key="Bool2Vis1" />

        <DataTemplate x:Key="dGender">
            <Image Name="genImage" VerticalAlignment="Center" Width="16" Height="16" />
            <DataTemplate.Triggers>
                <DataTrigger Binding="{Binding Path=Gender}" Value="K">
                    <Setter TargetName="genImage" Property="Source" Value="/Images/female-icon-32-green.png" />
                </DataTrigger>
                <DataTrigger Binding="{Binding Path=Gender}" Value="M">

                </DataTrigger>

            </DataTemplate.Triggers>
        </DataTemplate>
        
        <DataTemplate x:Key="dBorn">
            <Grid>
                <Grid.RowDefinitions>
                    <RowDefinition Height="25" />
                    <RowDefinition Height="25" />
                </Grid.RowDefinitions>
                <TextBlock Grid.Row="0" Text="{Binding Path=BirthDate}" FontFamily="../Fonts/OpenSans-Regular.ttf#Open Sans" Foreground="Gray"/>
                <TextBlock Grid.Row="1" Text="{Binding Path=ChristeningDate}" FontFamily="../Fonts/OpenSans-Light.ttf#Open Sans" Foreground="DarkGray" />
            </Grid>
        </DataTemplate>
        
        <Style x:Key="lvBornItem" TargetType="{x:Type ListViewItem}">
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate  TargetType="{x:Type ListViewItem}">
                        <StackPanel MinHeight="24" Name="A">
                            <GridViewRowPresenter 
                                      TextElement.FontFamily="../Fonts/OpenSans-Regular.ttf#Open Sans" 
                                      TextElement.FontSize="14"
                                      Content="{TemplateBinding Content}" 
                                      Columns="{TemplateBinding GridView.ColumnCollection}" />
                        </StackPanel>
                        <ControlTemplate.Triggers>
                            <Trigger Property="IsMouseOver" Value="True">
                                <Setter TargetName="A" Property="Background" Value="{DynamicResource Light3_33}" />
                            </Trigger>
                        </ControlTemplate.Triggers>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>

        <DataTemplate x:Key="rwID">
            <StackPanel Orientation="Horizontal">
                <TextBlock Text="{Binding Path=RowID}" Foreground="DarkGray" />
            </StackPanel>
        </DataTemplate>
        
    </Page.Resources>
    <Grid Background="{DynamicResource BG1}">
        <Grid.RowDefinitions>
            <RowDefinition Height="55" />
            <RowDefinition Height="330*" />
            <RowDefinition Height="215" />
        </Grid.RowDefinitions>
        <Grid Grid.Row="0" Background="{DynamicResource DarkColor1}">
            <Grid.ColumnDefinitions>
                <ColumnDefinition />
                <ColumnDefinition />
            </Grid.ColumnDefinitions>
            <StackPanel Orientation="Horizontal" HorizontalAlignment="Left" Grid.ColumnSpan="2">

                <Border Width="50" BorderBrush="{DynamicResource BookColor2}" Background="{DynamicResource BookColor2}" BorderThickness="1">
                    <TextBlock Text="F" Foreground="White" FontSize="48" HorizontalAlignment="Center" VerticalAlignment="Center" FontFamily="Garamond" />
                </Border>
                <TextBlock Style="{StaticResource BirthBookHeader}" ><Run FontWeight="Bold">FÖDELSE</Run>BOK</TextBlock>
                <TextBlock Style="{StaticResource BirthBookTitle}" Text="{Binding Path=BirthBook.FriendlyName}" Margin="10,10,0,0" />
                <TextBlock Style="{StaticResource BirthBookTitle}" Text="{Binding Path=BirthBook.Period}" Margin="10,10,0,0" />
            </StackPanel>
            <StackPanel Grid.Column="1" HorizontalAlignment="Right" Orientation="Horizontal">
                <Button Grid.Column="1" HorizontalAlignment="Right" Name="bFilter" VerticalAlignment="Center" Margin="0,0,20,0" Width="75" Height="25" Content="Filter" Click="bFilter_Click" />
                <Button x:Name="bback" Content="X" Width="40" Height="25" Margin="10,0,10,0" Click="bback_Click"/>
            </StackPanel>
        </Grid>
        <Grid Grid.Row="1">
            <ListView Name="lvBirth" Margin="0,0,0,20" BorderBrush="Transparent" BorderThickness="0" ItemsSource="{Binding Path=BirthBookData.Items}" 
                      SelectionChanged="lvBirth_SelectionChanged" Background="{DynamicResource BG1}" Foreground="White" 
                      ItemContainerStyle="{StaticResource lvBornItem}">
                <ListView.View>
                    <GridView>
                        <GridViewColumn Header="LotNo" CellTemplate="{StaticResource rwID}" />
                        <GridViewColumn Header="Sida"  DisplayMemberBinding="{Binding Path=PageNo}"/>
                        <GridViewColumn Header="Kön" CellTemplate="{StaticResource dGender}" />
                        <GridViewColumn Header="Födelsedag" CellTemplate="{StaticResource dBorn}"/>
                        <!--<GridViewColumn Header="Döpt" DisplayMemberBinding="{Binding Path=ChristeningDate}" />-->
                        <GridViewColumn Header="Barn" CellTemplate="{StaticResource dChild}" />
                        <GridViewColumn Header="Föräldrar" CellTemplate="{StaticResource dParents}"/>
                        <!--<GridViewColumn Header="Moder" CellTemplate="{StaticResource dMother}"/>-->
                        <GridViewColumn Header="Ort" DisplayMemberBinding="{Binding Path=Address}"/>
                    </GridView>
                </ListView.View>
            </ListView>
            <StackPanel Orientation="Horizontal" HorizontalAlignment="Right" VerticalAlignment="Bottom">
                <TextBlock Name="textBlock1" Text="Antal poster: " Foreground="LightGray" FontFamily="../Fonts/OpenSans-Regular.ttf#Open Sans" />
                <TextBlock Margin="8,0,10,0" Text="{Binding ElementName=lvBirth, Path=Items.Count}" FontWeight="Bold" Foreground="{DynamicResource Light03}" FontFamily="../Fonts/OpenSans-Regular.ttf#Open Sans" />
            </StackPanel>
        </Grid>
        <Grid Grid.Row="2" Background="{DynamicResource BG1}">
            <ScrollViewer Name="svItems" VerticalScrollBarVisibility="Auto">
                <WrapPanel Orientation="Horizontal" Name="wrpItems">
                    <StackPanel Name="spLot" Margin="10,10" Visibility="{Binding ElementName=chLot, Path=IsChecked, Converter={StaticResource Bool2Vis1}}">
                        <CheckBox Name="chLot" IsChecked="True">
                            <TextBlock Text="LotNr" Foreground="LightGray" />
                        </CheckBox>
                        <TextBox Text="{Binding Path=CurItem.RowID,Mode=TwoWay}" MinWidth="50" Width="Auto"/>
                    </StackPanel>

                    <StackPanel Name="spPos" Margin="10,10" Visibility="{Binding ElementName=chPos, Path=IsChecked, Converter={StaticResource Bool2Vis1}}">
                        <CheckBox x:Name="chPos" IsChecked="True">
                            <TextBlock Text="Pos" Foreground="LightGray" />
                        </CheckBox>
                        <TextBox Text="{Binding Path=CurItem.PageNo,Mode=TwoWay}" MinWidth="50" Width="Auto"/>
                    </StackPanel>

                    <StackPanel Name="spOrdnr" Margin="10,10" Visibility="{Binding ElementName=chOrdnr, Path=IsChecked, Converter={StaticResource Bool2Vis1}}">
                        <CheckBox Name="chOrdnr" IsChecked="True">
                            <TextBlock Text="OrdNr" Foreground="LightGray" />
                        </CheckBox>
                        <TextBox Text="{Binding Path=CurItem.OrdNo,Mode=TwoWay}" MinWidth="50" Width="Auto"/>
                    </StackPanel>

                    <StackPanel Name="spBorn" Margin="10,10" Visibility="{Binding ElementName=chBorn, Path=IsChecked, Converter={StaticResource Bool2Vis1}}">
                        <CheckBox Name="chBorn" IsChecked="True">
                            <TextBlock Text="Född" Foreground="LightGray" />
                        </CheckBox>
                        <TextBox Text="{Binding Path=CurItem.BirthDate,Mode=TwoWay}" MinWidth="70" Width="Auto" />
                    </StackPanel>

                    <StackPanel Name="spBabtise" Margin="10,10" Visibility="{Binding ElementName=chBabtise, Path=IsChecked, Converter={StaticResource Bool2Vis1}}">
                        <CheckBox x:Name="chBabtise" IsChecked="True">
                            <TextBlock Text="Döpt" Foreground="LightGray" />
                        </CheckBox>
                        <TextBox Text="{Binding Path=CurItem.ChristeningDate,Mode=TwoWay}" MinWidth="70" Width="Auto"/>
                    </StackPanel>

                    <StackPanel Name="spGender" Margin="10,10" Visibility="{Binding ElementName=chGender, Path=IsChecked, Converter={StaticResource Bool2Vis1}}">
                        <CheckBox x:Name="chGender" IsChecked="True">
                            <TextBlock Text="Kön" Foreground="LightGray" />
                        </CheckBox>
                        <TextBox Text="{Binding Path=CurItem.Gender,Mode=TwoWay}" MinWidth="40" Width="Auto"/>
                    </StackPanel>

                    <!--<StackPanel Margin="10,10">
                    <TextBlock Text="Title" />
                    <TextBox Text="{Binding Path=CurItem.Title,Mode=TwoWay}" Width="70" />
                </StackPanel>-->

                    <StackPanel Name="spFirstName" Margin="10,10" Visibility="{Binding ElementName=chFirstName, Path=IsChecked, Converter={StaticResource Bool2Vis1}}">
                        <CheckBox x:Name="chFirstName" IsChecked="True">
                            <TextBlock Text="Förnamn" Foreground="LightGray" />
                        </CheckBox>
                        <TextBox Text="{Binding Path=CurItem.FirstName,Mode=TwoWay}" MinWidth="120" Width="Auto" />
                    </StackPanel>

                    <StackPanel Name="spSurName" Margin="10,10" Visibility="{Binding ElementName=chSurName, Path=IsChecked, Converter={StaticResource Bool2Vis1}}">
                        <CheckBox x:Name="chSurName" IsChecked="True">
                            <TextBlock Text="Efternamn" Foreground="LightGray" />
                        </CheckBox>
                        <TextBox Text="{Binding Path=CurItem.SurName,Mode=TwoWay}" MinWidth="120" Width="Auto"/>
                    </StackPanel>

                    <StackPanel Name="spAddress" Margin="10,10" Visibility="{Binding ElementName=chAddress, Path=IsChecked, Converter={StaticResource Bool2Vis1}}">
                        <CheckBox x:Name="chAddress" IsChecked="True">
                            <TextBlock Text="Adress" Foreground="LightGray" />
                        </CheckBox>
                        <TextBox Text="{Binding Path=CurItem.Address,Mode=TwoWay}" MinWidth="120" Width="Auto"/>
                    </StackPanel>

                    <StackPanel Name="spNAddr" Margin="10,10" Visibility="{Binding ElementName=chNAddr, Path=IsChecked, Converter={StaticResource Bool2Vis1}}">
                        <CheckBox x:Name="chNAddr" IsChecked="True">
                            <TextBlock Text="Ny Adress" Foreground="LightGray" />
                        </CheckBox>
                        <TextBox Text="{Binding Path=CurItem.NAddress,Mode=TwoWay}" MinWidth="120" Width="Auto" />
                    </StackPanel>

                    <StackPanel Name="spDadTitle" Margin="10,10" Visibility="{Binding ElementName=chDadTitle, Path=IsChecked, Converter={StaticResource Bool2Vis1}}">
                        <CheckBox x:Name="chDadTitle" IsChecked="True">
                            <TextBlock Text="Titel Fader" Foreground="LightGray" />
                        </CheckBox>
                        <TextBox Text="{Binding Path=CurItem.FatherTitle,Mode=TwoWay}" MinWidth="120" Width="Auto" />
                    </StackPanel>

                    <StackPanel Name="spDadFirstName" Margin="10,10" Visibility="{Binding ElementName=chDadFirstName, Path=IsChecked, Converter={StaticResource Bool2Vis1}}">
                        <CheckBox x:Name="chDadFirstName" IsChecked="True">
                            <TextBlock Text="Förnamn Fader" Foreground="LightGray" />
                        </CheckBox>
                        <TextBox Text="{Binding Path=CurItem.FatherFirstName,Mode=TwoWay}" MinWidth="100" Width="Auto" />
                    </StackPanel>

                    <StackPanel Name="spDadSurName" Margin="10,10" Visibility="{Binding ElementName=chDadSurName, Path=IsChecked, Converter={StaticResource Bool2Vis1}}">
                        <CheckBox x:Name="chDadSurName" IsChecked="True">
                            <TextBlock Text="Efternamn Fader" Foreground="LightGray" />
                        </CheckBox>
                        <TextBox Text="{Binding Path=CurItem.FatherSurName,Mode=TwoWay}" MinWidth="100" Width="Auto" />
                    </StackPanel>

                    <StackPanel Name="spTitleMother" Margin="10,10" Visibility="{Binding ElementName=chTitleMother, Path=IsChecked, Converter={StaticResource Bool2Vis1}}">
                        <CheckBox x:Name="chTitleMother" IsChecked="True">
                            <TextBlock Text="Titel Moder" Foreground="LightGray" />
                        </CheckBox>
                        <TextBox Text="{Binding Path=CurItem.MotherTitle,Mode=TwoWay}" MinWidth="100" Width="Auto" />
                    </StackPanel>

                    <StackPanel Name="spMomFirstName" Margin="10,10" Visibility="{Binding ElementName=chMomFirstName, Path=IsChecked, Converter={StaticResource Bool2Vis1}}">
                        <CheckBox x:Name="chMomFirstName" IsChecked="True">
                            <TextBlock Text="Förnamn Moder" Foreground="LightGray" />
                        </CheckBox>
                        <TextBox Text="{Binding Path=CurItem.MotherFirstName,Mode=TwoWay}" MinWidth="100" Width="Auto" />
                    </StackPanel>

                    <StackPanel Name="spMomSurName" Margin="10,10" Visibility="{Binding ElementName=chMomSurName, Path=IsChecked, Converter={StaticResource Bool2Vis1}}">
                        <CheckBox x:Name="chMomSurName" IsChecked="True">
                            <TextBlock Text="Efternamn Moder" Foreground="LightGray" />
                        </CheckBox>
                        <TextBox Text="{Binding Path=CurItem.MotherSurName,Mode=TwoWay}" MinWidth="100" Width="Auto"/>
                    </StackPanel>

                    <StackPanel Name="spExtra1" Margin="10,10" Visibility="{Binding ElementName=chExtra1, Path=IsChecked, Converter={StaticResource Bool2Vis1}}">
                        <CheckBox x:Name="chExtra1" IsChecked="True">
                            <TextBlock Text="Extra 1" Foreground="LightGray" />
                        </CheckBox>
                        <TextBox Text="{Binding Path=CurItem.Extra1,Mode=TwoWay}" MinWidth="120" Width="Auto" />
                    </StackPanel>

                    <StackPanel Name="spExtra2" Margin="10,10" Visibility="{Binding ElementName=chExtra2, Path=IsChecked, Converter={StaticResource Bool2Vis1}}">
                        <CheckBox x:Name="chExtra2" IsChecked="True">
                            <TextBlock Text="Extra 2" Foreground="LightGray" />
                        </CheckBox>
                        <TextBox Text="{Binding Path=CurItem.Extra2,Mode=TwoWay}" MinWidth="120" Width="Auto"/>
                    </StackPanel>

                    <StackPanel Name="spExtra3" Margin="10,10" Visibility="{Binding ElementName=chExtra3, Path=IsChecked, Converter={StaticResource Bool2Vis1}}">
                        <CheckBox x:Name="chExtra3" IsChecked="True">
                            <TextBlock Text="Extra 3" Foreground="LightGray"  />
                        </CheckBox>
                        <TextBox Text="{Binding Path=CurItem.Extra3,Mode=TwoWay}" MinWidth="120" Width="Auto"  />
                    </StackPanel>

                    <StackPanel Name="spUpdated" Margin="10,10" Visibility="{Binding ElementName=chUpdated, Path=IsChecked, Converter={StaticResource Bool2Vis1}}">
                        <CheckBox x:Name="chUpdated" IsChecked="True">
                            <TextBlock Text="Uppdaterad" Foreground="LightGray" />
                        </CheckBox>
                        <TextBox Text="{Binding Path=CurItem.Updated,Mode=TwoWay}" Width="120" />
                    </StackPanel>

                </WrapPanel>
            </ScrollViewer>
        </Grid>

        <Border Grid.RowSpan="3" Width="650" Height="330" Background="White" BorderBrush="{DynamicResource BookColor2}" BorderThickness="2" CornerRadius="4" Name="FilterWindow" Visibility="Collapsed">
            <Grid>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="120" />
                    <ColumnDefinition Width="238*" />
                    <ColumnDefinition Width="288*" />
                </Grid.ColumnDefinitions>
                <Grid.RowDefinitions>
                    <RowDefinition Height="65" />
                    <RowDefinition Height="45" />
                    <RowDefinition Height="40" />
                    <RowDefinition Height="40" />
                    <RowDefinition Height="40" />
                    <RowDefinition Height="40" />
                    <RowDefinition Height="*" />
                </Grid.RowDefinitions>

                <Grid Grid.Column="0" Grid.ColumnSpan="3" Background="#E0F0E0">
                    <Border Width="65" BorderBrush="{DynamicResource BookColor2}" Background="{DynamicResource BookColor2}" BorderThickness="1" HorizontalAlignment="Left">
                        <TextBlock Text="F" Foreground="White" FontSize="48" HorizontalAlignment="Center" VerticalAlignment="Center" FontFamily="Garamond" />
                    </Border>

                    <TextBlock HorizontalAlignment="Left" Margin="134,0,0,6" Name="textBlock2" Text="FILTRERA RESULTAT" VerticalAlignment="Center" FontFamily="../Fonts/OpenSans-Regular.ttf#Open Sans" FontSize="28" />

                </Grid>
                <TextBlock Grid.Row="1" HorizontalAlignment="Left" Margin="14,0,0,5" Text="Förnamn" VerticalAlignment="Bottom" Grid.Column="1" FontFamily="../Fonts/OpenSans-Regular.ttf#Open Sans" FontSize="14" />
                <TextBlock Grid.Row="1" Grid.Column="2" HorizontalAlignment="Left" Margin="20,0,0,5" Text="Efternamn" VerticalAlignment="Bottom" FontFamily="../Fonts/OpenSans-Regular.ttf#Open Sans" FontSize="14" />
                <TextBlock Grid.Row="2" HorizontalAlignment="Right" Margin="0,0,10,0" Text="Barnet:" VerticalAlignment="Center" FontFamily="../Fonts/OpenSans-Regular.ttf#Open Sans" FontSize="18" FontWeight="Normal" Foreground="{StaticResource DarkColor2}" />
                <TextBlock Grid.Row="3" HorizontalAlignment="Right" Margin="0,0,10,0" Text="Modern:" VerticalAlignment="Center" FontFamily="../Fonts/OpenSans-Regular.ttf#Open Sans" FontSize="18" FontWeight="Normal" Foreground="{StaticResource DarkColor2}" />
                <TextBlock Grid.Row="4" HorizontalAlignment="Right" Margin="0,0,10,0" Text="Fadern:" VerticalAlignment="Center" FontFamily="../Fonts/OpenSans-Regular.ttf#Open Sans" FontSize="18" FontWeight="Normal" Foreground="{StaticResource DarkColor2}" />

                <TextBlock Grid.Row="5" HorizontalAlignment="Right" Margin="0,0,10,0" Text="Ort:" VerticalAlignment="Center" FontFamily="../Fonts/OpenSans-Regular.ttf#Open Sans" FontSize="18" FontWeight="Normal" Foreground="{StaticResource DarkColor2}" />
                <TextBox Grid.Row="2" HorizontalAlignment="Left" Margin="14,0,0,0" Name="cfirst" VerticalAlignment="Center" Width="216" Grid.Column="1" Style="{StaticResource stdTextBox}" />
                <TextBox Grid.Row="2" Grid.Column="2" HorizontalAlignment="Left" Margin="20,0,0,0" Name="csur" VerticalAlignment="Center" Width="216" Style="{StaticResource stdTextBox}" />
                <TextBox Grid.Row="3" HorizontalAlignment="Left" Margin="14,0,0,0" Name="momfirst" VerticalAlignment="Center" Width="216" Grid.Column="1" Style="{StaticResource stdTextBox}" />
                <TextBox Grid.Row="3" Grid.Column="2" HorizontalAlignment="Left" Margin="20,0,0,0" Name="momsur" VerticalAlignment="Center" Width="216" Style="{StaticResource stdTextBox}" />
                <TextBox Grid.Row="4" HorizontalAlignment="Left" Margin="14,0,0,0" Name="dadfirst" VerticalAlignment="Center" Width="216" Grid.Column="1" Style="{StaticResource stdTextBox}" />
                <TextBox Grid.Row="4" Grid.Column="2" HorizontalAlignment="Left" Margin="20,0,0,0" Name="dadsur" VerticalAlignment="Center" Width="216" Style="{StaticResource stdTextBox}" />

                <TextBox Grid.Row="5" Grid.Column="1" HorizontalAlignment="Left" Margin="14,0,0,0" Name="Ort" VerticalAlignment="Center" Width="216" Style="{StaticResource stdTextBox}" />
                <Button Content="SÖK" Grid.Column="2" Grid.Row="6" Height="24" HorizontalAlignment="Right" Margin="0,0,52,18" Name="bApplyFilter" Click="bApplyFilter_Click" VerticalAlignment="Bottom" Width="100" Style="{StaticResource SearchButton}" />
            </Grid>
        </Border>
    </Grid>
</Page>
